const {ccclass, property} = cc._decorator;

@ccclass
export default class TestCase extends cc.Component {

    @property({type: [cc.Node]})
    showNodes: cc.Node[] = [];

    onSelBtnClick(event: cc.Event, customData: string): void {
        
        let sel: number = parseInt(customData);
        for (let i = 0; i < this.showNodes.length; i++) {
            this.showNodes[i].active = i == sel;
        }
    }
}
